<?php
class service_news{
    public function getTop(){
        $newsDao = new DaoNews();
        $newsList = $newsDao->getList("categoryID <> 2 order by isIndex desc,sortID asc",8);
        return $newsList;
    }
    
    public function getOneByID($id){
        $newsDao = new DaoNews();
        $news = $newsDao->getOne("id = '".$id."'");
        return $news;
    }
}
?>
